package cc.mrbird.febs.utils;

import cc.mrbird.febs.accounting.mapper.DetailCostMapper;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import javax.xml.ws.RequestWrapper;

@Component
@EnableScheduling
public class schedule {
//    @Resource
//    private DetailCostMapper detailCostMapper;
//    @Scheduled(cron = "0 5 16 * * ?") // 每天2点05执行一次
//    public void deleteCostZero1() throws Exception {
//        detailCostMapper.deleteByCost();
//    }
//    @Scheduled(cron = "0 5 12 * * ?") // 每天2点05执行一次
//    public void deleteCostZero2() throws Exception {
//        detailCostMapper.deleteByCost();
//    }
//
//    @Scheduled(cron = "0 5 10 * * ?") // 每天2点05执行一次
//    public void deleteCostZero3() throws Exception {
//        detailCostMapper.deleteByCost();
//    }
}
